Skip to main content

switchDiskPyg2Sub

Description

switch pay as you go to subscription.

Request Method

POST

Request Path

/customer/disk/switch/pyg2sub/create

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
periodBODYintegerYesNo sample value for this parameter.period
costBODYintegerYesNo sample value for this parameter.cost
instanceIdBODYstringYesNo sample value for this parameter.disk id
regionIdBODYstringYesNo sample value for this parameter.region id
billingMethodBODYstringYesNo sample value for this parameter.billing method
pricingCycleBODYstringYesNo sample value for this parameter.pricing cycle

Return data

NameTypeSample valueDescription
resultobject`{"orderId":2.02207271417009997E+18}`No description for this parameter.
resultCodestring0No description for this parameter.
resultMsgstringsuccessNo description for this parameter.

Example

Successful Response example

{
"result":
{
"orderId":2.02207271417009997E+18
},
"resultCode":"0",
"resultMsg":"success"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}